<template>
  <div class="app-container">
    <div class="page-filter mb10 fl">
      <el-row>
        <el-col :span="24">
          <el-tabs v-model="active" type="card" @tab-click="handleTabs">
            <el-tab-pane label="在职人员" name="1"></el-tab-pane>
            <el-tab-pane label="证书" name="2"></el-tab-pane>
            <el-tab-pane label="简历" name="3"></el-tab-pane>
            <el-tab-pane label="离职人员" name="4"></el-tab-pane>
            <el-tab-pane label="转正申请" name="5"></el-tab-pane>
            <el-tab-pane label="离职申请" name="6"></el-tab-pane>
          </el-tabs>
        </el-col>
        <el-col v-if="active === '1'" :span="24">
          <Staff :info="info" />
        </el-col>
        <el-col v-if="active === '2'" :span="24">
          <Credential :info="info" />
        </el-col>
        <el-col v-if="active === '3'" :span="24">
          <Resume :info="info" />
        </el-col>
        <el-col v-if="active === '4'" :span="24">
          <QuitStaff :info="info" />
        </el-col>
        <el-col v-if="active === '5'" :span="24">
          <Become :info="info" />
        </el-col>
        <el-col v-if="active === '6'" :span="24">
          <Quit :info="info" />
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
import Resume from './components/resume/resume'
import Credential from './components/credential/credential'
import Quit from './components/quit/quit'
import Staff from './components/staff/staff'
import QuitStaff from './components/quitStaff/staff'
import Become from './components/become/become'

export default {
  name: '',
  components: { Resume, Quit, Staff, Become, Credential, QuitStaff },
  inject: ['app'],
  data() {
    return {
      active: '1',
      info: {}
    }
  },
  created() {
  },
  methods: {
    handleTabs(e) {
    }
  }
}
</script>
